<template>
  <div class="toast" v-show="isShow">
    <div>
      <button @click="handleClose">X</button>
    </div>
    <div class="content">

    </div>
  </div>
</template>

<script>
export default {
  name: "Dialog",
  data() {
    return {
      isShow: false,
    }
  },
  methods: {
    show() {
      this.isShow = true;
    },
    hide() {
      this.isShow = false;
    },
    handleClose() {
      this.isShow = false;
    }
  }
}
</script>

<style scoped>
.toast {
  width: 400px;
  height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  border-radius: 5px;
}
</style>